# openjdk:8-jre-alpine3.9  eclipse-temurin:8-jre
FROM openjdk:8-jre-alpine3.9
MAINTAINER liuchuang@csc-sz.cn

# 替换官方软件源为阿里的; 解决No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
    apk update && apk add git && \
    apk add --no-cache vim openssl openssh openssl-dev bash curl libevent &&\
    sed -i "s/jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4/jdk.tls.disabledAlgorithms= RC4/g" /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/java.security &&\
    apk add -U tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime &&  apk del tzdata

# 将私服10.28.25.211:8082的登录认证添加到镜像
COPY config.json /root/.docker/

CMD ["/bin/sh"]